package org.practice.util;

import org.practice.dao.BookDao;
import org.practice.dao.CategoryDao;
import org.practice.dao.OrderDao;
import org.practice.dao.ProductDao;
import org.practice.dao.UserDao;

public class ShopDaoFactory {
	public static CategoryDao createCategoryDao(){
		return (CategoryDao)ServiceProvider.getService("categoryDao");
	}
	public static BookDao createBookDao(){
		return (BookDao)ServiceProvider.getService("bookDao");
	}
	public static UserDao createUserDao(){
		return (UserDao)ServiceProvider.getService("userDao");
	}
	public static ProductDao createProductDao(){
		return (ProductDao)ServiceProvider.getService("productDao");
	}
	public static OrderDao createOrderDao(){
		return (OrderDao)ServiceProvider.getService("orderDao");
	}
}
